package math.calcul;

import java.util.ArrayList;
import java.util.List;

public class Polyn64 {

    private final List<Binaire> YnBinList;
    private final List<Polyn> PolynList;

    public Polyn64() {
        YnBinList = new ArrayList<Binaire>();
        PolynList = new ArrayList<Polyn>();
        for (int p = 1 ; p < 64 ; p++) {
            YnBinList.add(new Binaire(Integer.toBinaryString(p)));
        }
        double[] brep;
        for (Binaire B : YnBinList) {
            brep = B.repTab();
            double[] coeff = new VDM(brep).calculate();
            PolynList.add(new Polyn(coeff));

        }
    }

    public List<Polyn> getPolynList() {
        return PolynList;
    }
}
